package service

import (
	"go_code/gin-blog/dao/db"
	"go_code/gin-blog/model"
	"strconv"
)

func GetCommentList(Id string) ([]*model.Comment, error) {
	articleId, _ := strconv.ParseInt(Id, 10, 64)
	comment_list, err := db.GetCommentList(articleId)
	if err != nil {
		return nil, err
	}
	return comment_list, nil
}
